/*
package com.yudaob2b.common.oss.cloud;


import com.yudaob2b.common.sys.service.SysConfigService;
import com.yudaob2b.common.utils.ConfigConstant;
import com.yudaob2b.common.utils.Constant;
import com.yudaob2b.common.utils.SpringContextUtils;

*/
/**
 * 文件上传Factory
 *
 * @author Kidd.Tan
 * @email 298023780@qq.com
 * @date 2018-02-08
 *//*

public final class OSSFactory {
    private static SysConfigService sysConfigService;

    static {
        OSSFactory.sysConfigService = (SysConfigService) SpringContextUtils.getBean("sysConfigService");
    }

    public static CloudStorageService build() {
        //获取云存储配置信息
        CloudStorageConfig config = sysConfigService.getConfigObject(ConfigConstant.CLOUD_STORAGE_CONFIG_KEY, CloudStorageConfig.class);

        if (config.getType() == Constant.CloudService.QINIU.getValue()) {
            return new QiniuCloudStorageService(config);
        } else if (config.getType() == Constant.CloudService.ALIYUN.getValue()) {
            return new AliyunCloudStorageService(config);
        } else if (config.getType() == Constant.CloudService.QCLOUD.getValue()) {
            return new QcloudCloudStorageService(config);
        }

        return null;
    }

}
*/
